package org.springframework.samples.petclinic.model.usrAccount;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotEmpty;

import java.io.Serializable;

@Entity
@Table(name = "account")
public class Account implements Serializable {
	@Column
	@NotEmpty
	@Id
	private String accountName;

	@Column
	@NotEmpty
	private String usrPassword;

	public Account() {}

	public Account(String accountName,String usrPassword){
		this.accountName=accountName;
		this.usrPassword=usrPassword;
	}

	public String getUsrPassword() {
		return usrPassword;
	}

	public void setUsrPassword(String usrPassword) {
		this.usrPassword = usrPassword;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
}
